//
//  NetWorkingHandle.h
//  NetWorkingFrame
//
//  Created by xinjian01 on 17/3/7.
//  Copyright © 2017年 xinjian01. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^SuccessBlock)(NSDictionary *dic);
typedef void(^FailureBlock)(NSError *error);

typedef NS_ENUM(NSUInteger, NetWorkingRequestType) {
    POST,
    GET
};

@interface NetWorkingHandle : NSObject

+ (void)requestDataWithURL:(NSString *)url withParams:(NSDictionary *)params withRequestType:(NetWorkingRequestType )type succeccBlock:(SuccessBlock)successBlock failedBlock:(FailureBlock)failedBlock;




@end
